import 'dart:typed_data';

import 'package:flutter/foundation.dart';
import 'package:my_flutter/NativeUtil/cookie/cookie.dart';
import 'imagesaver/imageSaver.dart';

///保存cookie
Future<String> addCookie(String cookie) async {
return CookieManage.addCookie(cookie);
}

Future<void> saveUint8ListImage(Uint8List? fileData, String name) async {
  final String? filePath = await ImageSaver.save(name + '.jpg', fileData!);
  String msg = 'save image : $filePath';
  debugPrint(msg);
}